package com.hspedu.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: xujiabing
 * @date: 2024-10-05 15:32
 * @description 订单表实体
 */
@Data
@TableName("t_order")
public class Order implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long goodsId;
    private Long deliveryAddrId;
    private String goodsName;
    private Integer goodsCount;
    private BigDecimal goodsPrice;
    /**
     * 订单渠道1pc，2Android，3ios
     */
    private Integer orderChannel;
    /**
     * 订单状态：0 新建未支付1 已支付2 已发货3 已收货4 已退款5 已完成
     */
    private Integer status;
    private Date createDate;
    private Date payDate;
}
